package com.armani.model;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @ProjectName: armani
 * @Package: com.armani.model
 * @ClassName: ShopCarModel
 * @Description: 用户购物车模型
 * @Author: lenovo
 * @Date: 2021/12/12 20:33
 * @Version: 1.0
 **/
@Data
public class ShopCarModel {
    /**
     * 购物车自增id
     */
    private Integer id;
    /**
     * 数量
     */
    private Integer num;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 商品skuId
     */
    private Integer skuId;
    /**
     * 商品sku列表
     */
    private List<SkuModel> skuList;
    /**
     * 添加时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date insertTime;
}
